import { createRouter, createWebHistory } from 'vue-router'
import homeView from '@/views/home/home.vue'
import getOrderView from '@/views/getOrder/index.vue'
import getOrderListView from '@/views/getOrderList/index.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', redirect: '/getOrderList' },
    { path: '/home', name: 'home', component: homeView, children:[
    // { path: 'index', name: 'index', component: indexView, },
    // { path: 'getOrder', name: 'getOrder', component: getOrder1View, },
    // { path: 'getOrderList', name: 'getOrderList', component: getOrderList1View, },
    ]},
 { path: '/getOrder', name: 'getOrder', component: getOrderView, },
    { path: '/getOrderList', name: 'getOrderList', component: getOrderListView, },
  ],
})

export default router
